package com.bitrate.dagger.log.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.bitrate.dagger.log.aspect.XLogAscept;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@RequiredArgsConstructor
@ConditionalOnWebApplication
@Configuration(proxyBeanMethods = false)
public class XLogConfig {

	@Bean
	public XLogAscept xLogAscept() {
		log.info("------------- x-springboot-starter-log XLogAscept Init Success-----------");
		return new XLogAscept();
	}

}
